from django.urls import path
from home import views
from django.contrib.auth import views as auth_views

urlpatterns = [
    path('', views.home, name='home'),
    path('login/', views.user_login, name='login'),
    path('logout/', views.user_logout, name='logout'),
    path('run_pipeline/', views.run_pipeline, name='run_pipeline'),
    path('register/', views.register, name='register'),
    path('survey_create/', views.survey_create, name='survey_create'),
    path('survey_list/', views.survey_list, name='survey_list'),
    path('view/<int:survey_id>/', views.view_survey, name='view_survey'),
    path('delete/<int:survey_id>/', views.delete_survey, name='delete_survey'),
    path('survey/<int:survey_id>/export/', views.export_survey, name='export_survey'),
    path('publish-survey/<int:survey_id>/', views.publish_survey, name='publish_survey'),
    path('cluster-results/', views.cluster_results, name='cluster_results'),
    path('api/generate-report/', views.generate_ai_report, name='generate-report'),
    path('delete_user/<int:user_id>/', views.delete_user, name='delete_user'),
    path('api/analyze-user-group/', views.analyze_user_group, name='analyze-user-group'),
    path('admin/user-management/', views.admin_user_management, name='admin_user_management'),
    path('password_reset_request/', views.password_reset_request, name='password_reset_request'),
    path('password_reset_verify/', views.password_reset_verify, name='password_reset_verify'),
]